package course.pojo.excelModel;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.metadata.BaseRowModel;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author HLF
 * @date 2022/7/5 16:32
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class StudentModel extends BaseRowModel {
    /**
     * 学号
     */
    @ExcelProperty(value = "学号", index = 0)
    private Integer sid;

    /**
     * 姓名
     */
    @ExcelProperty(value = "姓名", index = 1)
    private String sname;

    /**
     * 性别
     */
    @ExcelProperty(value = "性别", index = 2)
    private String ssex;

    /**
     * 所属专业id
     */

    @ExcelIgnore
    private Integer zid;

    @ExcelProperty(value = "所属专业", index = 3)
    private String zname;

    @ExcelIgnore
    private Integer cid;

    @ExcelProperty(value = "所属学院", index = 4)
    private String cname;
}
